/**
* @Author  : zou.yingbin
* @Create  : 2022/1/17 13:48
* @Modify  : 2022/1/17 13:48
* @note    :
 */

package main

import (
	"fmt"
	"github.com/xormplus/core"
	"github.com/xormplus/xorm"
	"log"
)

var db *xorm.Engine

func DbInit() {
	fmt.Println("--------testXorm---------")
	e, err := xorm.NewEngine("mysql", "quote_test137:123456@(192.168.30.72:3306)/historyquote_test137")
	if err != nil {
		log.Fatal(err)
	}
	e.ShowSQL(true)
	e.SetTableMapper(core.SameMapper{})
	db = e
}
